
import React, { Component } from 'react';
import {Link} from 'react-router-dom'
 const Item=(props)=> {
     let path = '/product/'+props.id;
    return (
        <li className="f-fl item">
        <img src={props.img_path}/>
        <p>{props.product_name}</p>
        <Link to={path}>立即购买</Link>
        <div><a href="javascript:void(0)">{props.can_try == '1'?'免费试用':props.source}</a></div>
        </li>
    )
}
export default Item;